package com.tutorialspoint.annotation;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

public class HelloWorld {
	private String message;
	public void setMessage(String message){
		this.message  = message;
	}
	public String getMessage(){
		// System.out.println("Your Message : " + message);
		return message;
	}
	@PostConstruct
	public void init(){
		System.out.println("HelloWorld is going through init.");
	}
	@PreDestroy
	public void destroy(){
		System.out.println("HelloWorld will destroy now.");
	}
}
